package com.lebang.medicalInquiry.service;


import com.lebang.medicalInquiry.mapper.ConfigMapper;
import com.lebang.medicalInquiry.model.po.Config;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @version V1.0
 * @author: zpc
 * @date:
 */
@Service
public class ConfigService {

    @Resource
    private ConfigMapper configMapper;

    /**
     * 根据code获取配置信息
     *
     * @param code
     * @return
     */
    public String getByCode(Integer code) {
        Config config = configMapper.selectByCode(code);

        return config.getValue();

    }

}
